import request from '@/utils/request';

export async function pageItemLog(projectId, itemType, itemId, params) {
    return request(`/project/${projectId}/operLog/${itemType}/${itemId}/page`, {
        params,
    });
}

export async function addItemLog(projectId, itemType, itemId, msg) {
    return request(`/project/${projectId}/operLog/${itemType}/${itemId}/msg`, {
        method: "POST",
        data: {
            msg: msg
        }
    });
}

export async function addCustomItemLog(projectId, itemType, itemId, msgItems) {
    return request(`/project/${projectId}/operLog/${itemType}/${itemId}/msgItems`, {
        method: "POST",
        data: msgItems
    });
}